<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<link rel="stylesheet" type="text/css" href="stylesheets/style.css">
<title>EProperties Manual</title>
</head>

<body bgcolor="#FFFFFF">
<div align="center"> 
  <h1><font color="grey">{E}</font>Properties</h1>
  <h2><font color="grey">{E}</font>Properties ${version} Manual</h2>
</div>
<p>This is the manual for Extended Properties, version ${version}. 
Extended Properties (or EProperties) provides a number of syntax and API extensions to the 
java.util.Properties class, while retaining backwards compatibility.</p>

<p>If this syntax below seems interesting, <a href="syntax.html">read on.</a></p>

<pre>
<font color="red"># Load the system properties</font>
system=<font color="blue">[method://java.lang.System.getProperties()]</font>

<font color="red"># Define the environment and language based on the system properties, 
# with sensible defaults.
#  (these likely came in as -D options on the command line)</font>
lang=<font color="blue">${system-&gt;lang|english}</font>
env=<font color="blue">${system-&gt;env|dev}</font>

<font color="red"># Include language based properties</font>
languages={
   english=<font color="blue">[english.properties]</font>
   spanish=<font color="blue">[spanish.properties]</font>
}

<font color="red"># Include environment specific properties</font>
environments={
   dev=<font color="blue">[development.properties]</font>
   test=<font color="blue">[test.properties]</font>
   prod=<font color="blue">[prod.properties]</font>
}

current.lang=<font color="blue">${languages-&gt;${lang}}</font>
current.env=<font color="blue">${environment-&gt;${env}}</font>

hello.world=<font color="blue">"${current.lang-&gt;hello} ${current.lang-&gt;world}"</font>

<font color="red"># Allow for possible local overrides</font>
[/etc/local.properties|failonerror=false]
</pre>

</body>
</html>
